<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index');
    //商品分类管理
    $router->resource('goodsType', 'GoodsTypeController');
    //商品分类添加表单父级元素查询
    Route::get('type',['App\Admin\Controllers\GoodsTypeController','type']);
    //商品评论管理
    $router->resource('goods_comment','GoodsCommentController');
    //订单管理
    $router->resource('goodsOrder','StoreOrderController');
    //商品规格管理
    $router->resource('GoodsSpec', 'GoodsSpecController');
    $router->resource('SingleSpec', 'SingleSpecController');
    //下拉菜单展示规格
    Route::get('spec',['App\Admin\Controllers\SingleSpecController','spec']);
    //配置
    Route::get('config',['App\Admin\Controllers\GoodsSeckillController','config']);
    //商品
    Route::get('goods',['App\Admin\Controllers\GoodsSeckillController','goods']);
    //团长id
    Route::get('userid',['App\Admin\Controllers\GroupGoodslistController','userid']);
    //优惠券管理
    $router->resource('StoreCoupon','StoreCouponController');
    //拼团管理
    $router->resource('GroupGood','GroupGoodController');
    $router->resource('GroupGoodslist','GroupGoodslistController');
    //砍价管理
    $router->resource('Bargain', 'BargainController');
    $router->resource('BargainHelp', 'BargainHelpController');
    $router->resource('BargainUser', 'BargainUserController');
    //秒杀管理
    $router->resource('GoodsSeckillConfig', 'GoodsSeckillConfigController');
    $router->resource('GoodsSeckill', 'GoodsSeckillController');
    //商品管理
    $router->resource('goodsList', 'GoodsController');
    $router->resource('sellList', 'GoodsController');
    $router->resource('GroupGood','GroupGoodController');
    $router->resource('grid', 'GoodsController');


    //直播管理 候照辉
    //创建直播
    $router->resource('CreateLiveStream', 'CreateLiveStreamController');
    //直播列表
//    $router->resource('LiveStreamList', 'CreateLiveStreamController');
    Route::get('LiveStreamList',['App\Admin\Controllers\CreateLiveStreamController','LiveStreamList']);
    Route::get('audio',['App\Admin\Controllers\CreateLiveStreamController','audio']);

    //优惠券配置
    $router->resource('CouponActivity', 'CouponActivityController');
    //优惠券列表
    $router->resource('Coupon', 'CouponController');
<<<<<<< HEAD
  //用户管理
    $router->resource('UserAdmin', 'UserAdminController');

=======
    //用户管理
    $router->resource('UserAdmin', 'UserAdminController');
>>>>>>> db5e80b740ed4c6ae86a76924ac2f941c8c196f1
});

